home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6834 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: gail.ripco.com!mambuhl
  2. From: mambuhl@ripco.com (Martin Ambuhl)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: A question for the C
  5. Date: 15 Feb 1996 17:28:59 GMT
  6. Organization: Ripco Communications, Inc.
  7. Message-ID: <4fvqgr$qoe@gail.ripco.com>
  8. NNTP-Posting-Host: golden.ripco.com
  9.  
  10. dwoo@jupiter.sun.csd.unb.ca (Dennis K. C. Woo)
  11. in <4fnelv$dvp@sol.sun.csd.unb.ca> asks:
  12.  
  13.  
  14. >In the following code fragment, a sturcture is defined as COMPLEX. The
  15. >argument var1 is defined as a 32-bit word. The lines that marked as
  16. >"offending line" caused the Watcom compiler to complain that "expression
  17. >for '->' must be a pointer to structure or union". However, the variable
  18. >v1 is already declared as a pointer to COMPLEX...why is wrong? I had
  19.  
  20. v1 may be a COMPLEX *, but v1[i] isn't. v1[i] is a COMPLEX, so
  21. v1[i].member_name is the form to use.
  22.  
  23. BTW, if you actually want to post to c.l.c, don't post code
  24. which requires people trying to help you to
  25. 1) strip or convert your C++ comments.  If you must use them, then post
  26.     to c.l.c++
  27. 2) #define away non-C non-keywords such as `FAR', `PASCAL', `DWORD', and
  28.     `MK_FP32'.  If these are related to your problem, then
  29.     comp.os.msdos.programmer is more appropriate than c.l.c.
  30.  
  31. If your problem requires that you #include <windows.h>, you know that
  32.     a Windoze newsgroup is more appropriate than c.l.c.
  33.                                                                                          
  34. --
  35. * Martin Ambuhl       net: mambuhl@ripco.com
  36. * Chicago, IL (USA)    
  37.